#!/bin/bash

# This requires us to have ros deps and easy_install here.

echo " - workspace: ${WORKSPACE}"
echo " - cleaning out old builds"
rm -rf ${WORKSPACE}/mingw
rm -rf ${WORKSPACE}/ros
rosinstall ${WORKSPACE}/ros http://win-ros-pkg.googlecode.com/svn/stacks/win_ros/trunk/mingw_electric.rosinstall
cd ${WORKSPACE}/ros; . ./setup.bash
export MINGW_INSTALL_PREFIX=${WORKSPACE}/mingw
roscd mingw_cross; make compile
#rm -rf /opt/win

